package com.easycar.common.base;

import com.easycar.common.exception.InitializationException;


public   class GRunTime {

    private  static boolean   isDebug;

    private static  GRunTime   sInstance;

    private  static String  URL="";


    public  GRunTime(){

    }

    public static  void  init(boolean isdeBug,String url){
        sInstance=new GRunTime();
        isDebug=isdeBug;
        URL=url;
    }
    public static GRunTime  getInstance(){
         if(sInstance==null){
           throw   new InitializationException("请先调用init");
         }
         return sInstance;
    }
    public  String getURL() {
        return URL;
    }

    public boolean isDebug() {
        return isDebug;
    }




}
